#include "../tlv/tlv.h"
typedef void*(*cmd_func_ptr_t)(tlv_t *tlv,int sockfd,const char*);

typedef struct trie_s{
    struct trie_s* children[26];
    cmd_func_ptr_t func;
}trie_t;

int trie_insert(trie_t *trie,const char *cmd,cmd_func_ptr_t func);

cmd_func_ptr_t trie_get_func(trie_t *trie,const char *cmd);

void init_func(trie_t *cmd_dict);
